package top.juntech.serverconsumerribbonhystrix.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import top.juntech.serverconsumerribbonhystrix.service.HiService;

@RestController
@RequestMapping("/hi")
public class HiController {


    @Autowired
    private HiService hiService;

    @GetMapping
    public String Hi(@RequestParam(value = "name") String name){
        return hiService.hiService(name);
    }
}
